<?php 
include('../common/common.php');
include('../common/checksession.php');
checksession("../index.php");
include('../../inc/conn.php');

$restore_id=$_POST["beach_restore"];
$gurl=$_SERVER['HTTP_REFERER'];

foreach($restore_id as $v){
	isnum($v,"操作失败!",$gurl);
}
$restore_id=implode(",",$restore_id);


$db=db_connect();
$sql=update_sql("`".PRETABLE."arcmain`","`isdel`='0'","`id` IN(".$restore_id.")");
if(!$db->query($sql)){
	ShowMsg_h("操作失败!",$gurl);
	exit;
}
ShowMsg_h("操作成功!",$gurl);
$db->close();

?>